package com.patzn.osgi.hello.maven.bundle.plugin;

import com.google.gson.JsonObject;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * @name: HelloActivator
 * @description: HelloActivator
 * @author: jiangcs
 */
public class HelloActivator implements BundleActivator {
    @Override
    public void start(BundleContext bundleContext) throws Exception {
        System.out.println("start");

        JsonObject jsonObject = new JsonObject();
        jsonObject.addProperty("name", "OSGI");
        System.out.println(jsonObject);
    }

    @Override
    public void stop(BundleContext bundleContext) throws Exception {
        System.out.println("stop");
    }
}
